Repository navigation
test(id): re-apply probe_restoreid0 integration coverage from archive PR #7380 (task 14939) - #8619
Conversation
… PR #7380 (task 14939) Salvage of the one remainder file from closed archive PR #7380 (tip 03cc5be): an integration probe asserting WorldCore::restore refuses an Issued participant 0 and sanitizes display names the way mint does (issue #2972 behavior). Verified passing on current main: cargo test --test probe_restoreid0 -p id - 1 passed. Complements the unit coverage the #2972 fix landed in src/world/tests.rs by exercising the same contract through the public API and journal wire format. Refs #7297.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3856e53ae3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
#8619) Cases A, B and B2 only printed outcomes, so a restore regression accepting a forged Issued participant 0 or control-bearing display names would have stayed green. All three now assert restore errors, matching the validation in src/world/core.rs. Verified: cargo test --test probe_restoreid0 - 1 passed with the assertions live.
Salvage re-application of the one remainder file from closed archive PR #7380 (tip 03cc5be), routed by salvage-validation task 14111 and worked as queue task 14939 (issue #7297).
What this adds:
pkgs/id/tests/probe_restoreid0.rs— an integration probe assertingWorldCore::restorevalidates theIssuedarm the way mint does: it refuses Issued participant 0 (the host/system identity) and sanitizes display names (refusing one that sanitizes to empty). This is the issue #2972 contract; the fix landed in 99bcba5 with unit tests insrc/world/tests.rs, and this probe exercises the same contract end-to-end through the public API and the journal wire format (hardcoded token digests).Verification (oracle: the probe itself, run against current main before re-application):
cargo test --test probe_restoreid0via fleet-build-lock on a clean main worktree + this file: 1 passed (testprobe_controls_and_cases).Diff is exactly the salvaged file, byte-identical to the archive tip. Refs #7297, #2972.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.